home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group97a.txt
/
000098_icon-group-sender _Tue Apr 1 02:33:20 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
1KB
Received: by cheltenham.cs.arizona.edu; Tue, 1 Apr 1997 05:46:32 MST
To: icon-group@cs.arizona.edu
Date: Tue, 1 Apr 1997 02:33:20 GMT
From: nr@viper.cs.Virginia.EDU (Norman Ramsey)
Message-Id: <5hps5g$5kg@viper.cs.Virginia.EDU>
Organization: University of Virginia Computer Science Department
Sender: icon-group-request@cs.arizona.edu
Subject: file locking in unix Icon
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
Content-Length: 644
I need an Icon program to maintain a database of received messages.
Because these messages come in the mail, multiple copies of the
program can be running at one time. I'd like to lock the database.
The Unix flock() primitive provides a readers/writers locking
capability, which is just what I need, but I'm not sure how to import
it into Icon. (I figure it can be done using the dynamic loading
capability, which I don't understand.)
Does anybody out there have C code that will implement Icon functions
to acquire and release locks on the file descriptors underlying Icon
files?
Norman
--
Norman Ramsey
http://www.cs.virginia.edu/~nr